			<div id="user-controls">
				<ul class="user-tabs">
					<?php if(smit_is_user()): ?>
					<li>
						<?php echo smit_get_username(); ?>
					</li>
					<?php else: ?>
					<li><?php echo smit_lang('global.greeting'); ?></li>
					<?php endif; ?>
					<?php if(smit_is_user()): ?>
					<li>
					<?php echo smit_link(array('core', 'logout'), smit_lang('global.logout'))?>
					</li>
					<?php else: ?>
					<li>
					<?php echo smit_link(array('core', 'login', 'onclick' => 'toggleFade(\'#login\'); return false;'), smit_lang('global.login'))?>
					</li>
					<li>
					<?php echo smit_link(array('core', 'register'), smit_lang('global.register'))?>
					</li>
					<?php endif; ?>
				</ul>
				<!--
				<form action="<?php echo smit_url(array('core', 'login')); ?>" method="post">
				<ul class="user-tabs" id="login" style="margin-top: -5px;position: relative;<?php echo $smit_right; ?>: 20px;display: none;">
					<li class="nohover"><input type="text" name="username" value="Username" class="form" /></li>
					<li class="nohover"><input type="password" name="password" value="Password" class="form" /></li>
					<li class="nohover"><input type="submit" name="submit" value="Login" class="button" /></li>
				</ul>
				</form>
				-->
				<ul class="user-tabs" style="float: <?php echo $smit_right; ?>;margin-<?php echo $smit_right; ?>: 20px;">
				<?php if(smit_is_user()): ?>
					<li><?php echo smit_link(array('usercp'), smit_lang('global.userpanel')); ?></li>
					<li><?php echo smit_link(array('usercp', 'conversations'), smit_lang('global.conversations')); ?> (0)</li>
				<?php endif; ?>
					<li><?php echo smit_link(array('search', 'forum'), smit_lang('global.search')); ?></li>
					<li><?php echo smit_link(array('help', 'forum'), smit_lang('global.help')); ?></li>
				</ul>
			</div>
			<div id="smit-wrapper">
